package cn.ren.cloud.feign;

import cn.ren.cloud.fallback.CourseFeignClientFallbackFactory;
import cn.ren.cloud.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 23508
 */
@FeignClient(value = "service-course", fallbackFactory = CourseFeignClientFallbackFactory.class)
public interface CourseUserLearnFeignClient {

    /**
     * feign接口调用
     *
     * @param courseId
     * @param loginId
     * @return
     */
    @RequestMapping(value = "/courseUserLearn/byInfo/{courseId}/{loginId}",method = RequestMethod.GET)
    JsonResult getByCourseId(@PathVariable("courseId")Long courseId, @PathVariable("loginId")Long loginId);
}
